<template>
  <div class="brotherstyle">
    哥哥组件：<button @click="setYoungerBrotherData">给弟弟传参</button>
    <OrderList />
  </div>
</template>
<script>
import bus from '../assets/bus'
import OrderList from './toolView/OrderList.vue'
export default {
  components: {
    OrderList
  },
  methods: {
    setYoungerBrotherData () {
      // 通过 bus.$emit 派发一个事件
      bus.$emit('setYoungerBrotherData', '给弟弟传参')
    }
  }
}
</script>
<style scoped>
.brotherstyle{
  padding: 15px;
  border: 1px solid salmon;
  width: 80%;
}
</style>
